<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">

    <div class="header">
        <div class="logo"><h:graphicImage library="images" name="logo.png"/></div>
        <div class="nav_top"><h:outputLink class="logo" value="/TienIchVanPhong/user/" >TIỆN ÍCH VĂN PHÒNG</h:outputLink>
            <ul>
                <li>
                    
                    <h:outputLink rendered="#{userController.userActive.isManager}" value="/TienIchVanPhong/user/emp/tk" >Chấm Công</h:outputLink>
                
                </li>
                <li> <h:outputLink rendered="#{userController.userActive.isManager}" value="/TienIchVanPhong/user/emp/" >Quản lý nhân viên</h:outputLink>
                    <div class="nav_sub">
                        <ul>
                            <li><h:outputLink value="/TienIchVanPhong/user/emp/" >Tất cả nhận viên</h:outputLink></li>
                            <li><h:outputLink value="/TienIchVanPhong/user/emp/add/" 
                                              rendered="#{userController.userActive.isAdmin}" 
                                              >Thêm nhân viên</h:outputLink></li>
                           
                        </ul>
                    </div>
                </li>
             
                <li> <h:outputLink value="/TienIchVanPhong/user/account/" >Tài khoản</h:outputLink>
                    <div class="nav_sub">
                        <ul>
                            <li><h:outputLink value="/TienIchVanPhong/user/account/" >Thông tin tài khoản</h:outputLink></li>
                            <li><h:outputLink value="/TienIchVanPhong/user/account/password/" >Thay đổi mật khẩu</h:outputLink></li>
                            <li><h:outputLink value="/TienIchVanPhong/user/account/position/" >Vị trí làm việc</h:outputLink></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <div class="user">
                <p>Xin chào <h:outputLink value="/TienIchVanPhong/user/account/" >
                        <h:outputLabel value="#{userController.empLogin.acc_name}"></h:outputLabel>
                        </h:outputLink>
                   
                    <h:commandLink id="thoat" 
                                   onclick="if (!confirm('Bạn muốn thoát?'))return false;"
                                   actionListener="#{userController.doLogout()}" value="Thoát"></h:commandLink> </p>
            </div>
            <!--end user--> 
        </div>
        <!--end nav_top-->
        <div style="clear:both;"></div>
    </div>
    
    <!--end header-->
    <!--end header-->
</ui:composition>
